package com.xhsj.user.lsm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xhsj.user.sms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 历史任务表
 * </p>
 *
 * @author suxiaolin
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_badges_process_hi_task")
public class TbBadgesProcessHiTask extends BaseEntity<TbBadgesProcessHiTask> {

    private static final long serialVersionUID = 1L;

    /**
     * 审核用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 业务数据id
     */
    @TableField("data_id")
    private String dataId;

    /**
     * 节点id
     */
    @TableField("node_id")
    private String nodeId;

    /**
     * 审核状态 0未审核 1审核通过 2审核退回
     */
    @TableField("status")
    private Integer status;

    /**
     * 申请用户id
     */
    @TableField("proposer_id")
    private String proposerId;

    /**
     * 申请用户名称
     */
    @TableField(exist = false)
    private String proposerName;

    public TbBadgesProcessHiTask(String userId, String dataId, String nodeId, Integer status,String proposerId) {
        this.userId = userId;
        this.dataId = dataId;
        this.nodeId = nodeId;
        this.status = status;
        this.proposerId = proposerId;

    }

    public TbBadgesProcessHiTask() {
    }
}
